Merge Submodel

The Merge Submodel option allows commonly used submodels to be merged into an existing model in one or more places. Submodels are created just like any other model and may be complete or incomplete models.

When specifying a submodel, you are prompted for a "tag" to be attached to each element of the submodel as either a prefix or suffix. For example, you may be developing a model with four workstations. Instead of creating workstations individually, you could create a submodel with only the common elements (e.g., in-box, out-box, telephone, variables, arrays, etc.) and merge the submodel into the main model four times. In the resulting model, you would then fill in the unique portions of each workstation. Entity and attribute names will not be tagged.

In the following example, the tag "A_" is attached as a prefix to every element of the submodel. A location called Queue1 in the submodel becomes A_Queue1 in the main model and so on. Likewise, a variable called Rejects becomes A_Rejects in the merged model.

 

Please note

Tags used as prefixes must begin with a letter, A through Z, or an underscore. For example, the tag "3C_" is invalid and would produce an error message.

How to merge a model or submodel into an existing model:

1. Open the initial (base) model.

2. From the File menu select Merge.

3. Select Model or Submodel from the submenu.

4. Specify the name of the model to be merged in the following dialog box.

 

5. If you select Submodel, specify a prefix or suffix to be attached to each element of the submodel.

6. Click on the layout where you want the model or submodel to appear. A bracket appears on the screen, representing the upper left corner of the merging model’s layout. This bracket moves as you move the mouse, allowing you to correctly position the layout to be merged.

7. Next, you will be asked if you would like to append the graphic library file from the model or submodel to the current graphic library file. Select yes or no depending on your preference.

8. When the model is merged in, the graphical elements remain selected so that you can position the merged model exactly where you want it.

Please note

When merging models, if the zoom factors and grid scales are not the same, ProModel will adjust the sizes of graphical elements in the merging model to the scale of the original model.